package com.woniu.controller;

import com.woniu.dto.OrderAddDTO;
import com.woniu.dto.OrderEditDTO;
import com.woniu.dto.OrderSearchDTO;
import com.woniu.service.AddressService;
import com.woniu.service.OrderItemService;
import com.woniu.service.OrderService;
import com.woniu.util.ResponseUtil;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/address")
public class AddressController {
    @Resource
    private AddressService addressService;
    
    @GetMapping("/findUserId/{customerId}")
    public ResponseUtil findOrderDetail(@PathVariable Integer customerId) {
        return addressService.findByUserId(customerId);
    }

}
